package com.yuexunit.websocket;

import javax.servlet.http.HttpServletRequest;

import org.apache.catalina.websocket.StreamInbound;
import org.apache.catalina.websocket.WebSocketServlet;

/**
*@version 创建时间：2016年12月2日 下午3:37:29
*@author wenwenlong
*类说明
*/


public class WebsocketTest extends WebSocketServlet{
	private static final long serialVersionUID = -4853540828121130946L;
	
	@Override
	protected StreamInbound createWebSocketInbound(String arg0, HttpServletRequest request) {
		return new WebSocketMessageInbound(request.getParameter("clientId"), request.getParameter("toClientId"));
	}
}